home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmigaPlus / Tools / Development / renderlib40 / src / lib_global.c < prev    next >
Encoding:
C/C++ Source or Header  |  2002-12-20  |  342 b   |  22 lines

  1.  
  2. #include "lib_init.h"
  3. #include "lib_debug.h"
  4. #include <proto/exec.h>
  5.  
  6. struct Library *UtilityBase = NULL;
  7.  
  8. LIBAPI BOOL Library_Init(LIB_BASE_T *LibBase)
  9. {
  10.     UtilityBase = OpenLibrary("utility.library", 0);
  11.     if (UtilityBase)
  12.     {
  13.         return TRUE;
  14.     }
  15.     return FALSE;
  16. }
  17.  
  18. LIBAPI void Library_Exit(LIB_BASE_T *LibBase)
  19. {
  20.     CloseLibrary(UtilityBase);    
  21. }
  22.